package com.yjz.designpattern.adapter_pattern;

/**
 * @author: yuanjinzhong
 * @date: 2021/12/30 5:47 下午
 * @description:
 */
public class Client {
    public static void main(String[] args) {
        Target target = new TargetImpl();
        target.hello();
        target.word();

        System.out.println("********重构后*******");


        Target adapter = new Adapter(target);

        adapter.hello();

        adapter.word();

    }

}
